package application

import (
	"gitee.com/chenjihao00/standard-repo/basic/configrations"
)

type BasicApplication struct {
	basicConfig *configrations.BasicConfig
}

func NewBasicApplication(basicConfig *configrations.BasicConfig) *BasicApplication {
	return &BasicApplication{
		basicConfig: basicConfig,
	}
}

func (a *BasicApplication) MysqlConfig() *configrations.MysqlConfig {
	return &a.basicConfig.Database.Mysql
}
func (a *BasicApplication) LruConfig() *configrations.LruConfig {
	return &a.basicConfig.Cache.LRU
}

func (a *BasicApplication) ApplicationConfig() *configrations.ApplicationConfig {
	return &a.basicConfig.Application
}
